VoiceGuide IVR Software Main Page
Jump to content

Play_start Com Command W/ Vg6

Recommended Posts

Hello

 

When I use Play_Start command in a VB script, the first tiny bit of the file plays but then the next action is taken and the play back stops. I am running the VB script from a VBScript module in Script Designer and I also have the "Wait until VB script and sound file completes" option chosen. Below is my script:

 

set vg = CreateObject("VoiceGuide.CommandLink")

vg.Play_Start $RV_LINEID, "C:\IVR\Audio\Outbound\vars\Call-Ahead_0430.wav"

set vg = Nothing

 

Any ideas?

Share this post


Link to post

Could you please post a copy of VoiceGuide's Trace Logs which captures the call, this will allow us to see what happened.

 

Enable logging by setting the log levels to 10 in VG.INI as per below:

[Log]

 

VoiceGuide=10

CallLoader=0

VoicemailManager=0

EmailSender=0

ktTel=0

ktTts=0

Then restart VG and make a test call which demonstrates the problem.

 

Trace files will be created in VG's \log\ subdirectory.

 

Please post the traces and the VoiceGuide script used.

 

When posting traces/scripts please .ZIP them up and post them as attachments.

Share this post


Link to post

Thanks for the reply. Attached are the docs you requested.

 

0130vgm.txt is the log of the event.

 

scriptedVoiceTest.vgs is the Voice Guide Script.

 

CallMe.vbs is the script used to launch the outbound call.

 

the csv,xml, and .vgl files go with the VGS Im assuming so I included them as well.

 

Thanks for the help!

Voice_Guide_Trace_Log.zip

Share this post


Link to post

In the 'Run VBScript' module you have two Play_Start calls one after another:

 

vg.Play_Start $RV_LINEID, "C:\IVR\Audio\Outbound\vars\0430.wav"

vg.Play_Start $RV_LINEID, "C:\IVR\Audio\Outbound\vars\0530.wav"

 

Calling one Play_Start after another like that does not "queue" the files to play one after another. The second Play_Start will stop the first one.

 

Also note that the script does complete very quickly. The Play_Start calls do not 'block', they return immediately.

 

And in the the "Wait until VB script and sound file completes" option the "sound file completes" refers to the sound file that is played while the VBScript is running, not any Play_Start calls issued from the VBScript. The sound file that is played while the VBScript is running is specified on the "Play" tab of the 'Run VBScript' module properties pages.

 

VoiceGuide is acting as expected when it just hangs up after finishing your VBScript, you have not called any Run_ResultReturn or similar so the system is not provided with instructions on what next path to take, so it just hangs up.

 

BTW. Why do you not want to use a Play module to play the sound files?

 

As it looks like you are trying to programmatically control VoiceGuide and you have a Dialogic card we'd strongly recommend using v7. v7 has much better support for programmatic control and v7 will give you better sound quality.

Share this post


Link to post

Thanks for the reply

 

I am attempting to play 2 sound files in that script, however the 2nd sound file is being clipped as well.

 

I am using VBscript to program the control flow because I need to do some play a bunch of sound files based on many conditions. Majority of my script is built in Script Designer with modules etc, but it would be to much work to use those modules to have my human voice "read" off a 8 digit number.

 

Upgrading to 7 is possible, but I would not prefer it. Our system has been very flaky in the past and it is mission critical. I don't want to fix whats not "broken".

 

So my sound file is being clipped because I am not returning a module? Can you go into more detail on that?

Share this post


Link to post
I am attempting to play 2 sound files in that script,

Multiple sound files can be played by any module by just specifying them on the same line separated by commas. Have you tried doing this, or is this not suitable for your needs?

 

however the 2nd sound file is being clipped as well.

When specifying both files in Play modules? Could you please post that trace?

 

but it would be to much work to use those modules to have my human voice "read" off a 8 digit number.

Have you looked at the "Say Numbers" module? You can replace the system sound files with your own, and you can also edit the functions used by the "Say Numbers" module and add your own custom Say Number functions.

 

Still recommend moving to v7. v7 can be installed alongside v6 and one or the other can be ran without uninstalling the other - you just got to make sure that v6 and v7 are not trying to control the card at the same time. I note that you are also no using the latest v6, but time would be better spent just moving to v7 directly.

 

So my sound file is being clipped because I am not returning a module? Can you go into more detail on that?

Your files are clipped because you are returning from script. The second Play_Start stops the first one, and then VG ends the call when VBScript finishes and there are no other modules to go to.

 

Play_Start is not really meant to be called from VBScripts ran inside the VoiceGuide script. They are only really meant to be used if VoiceGuide is controlled from an external program that intercepts all events as well etc.

 

Can you describe in more detail what you are trying to achieve? We can then suggest what the best approach would be.

Share this post


Link to post
Can you describe in more detail what you are trying to achieve? We can then suggest what the best approach would be.

 

Sure. I have a VG script written that is initiated by a VB script run from a scheduled task. The script calls out to people and updates a database based on choices they make during the call. The script is complete and works well, however I am using the text-to-speech engine to read times, dates, and numbers. I simply need to replace those text-to-speech parts with my own recordings. Is there a better way to approach this?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×